﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login_NTD.ascx.cs" Inherits="TuyenDungViecLam.User_control.Login_NTD" %>
<div id="toolbox">
    <asp:Panel runat="server" ID="loginPanel" CssClass="contentmenu">
        <%--<asp:Login ID="Login1" runat="server">
            <LayoutTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0">
                                <tr>
                                    <td align="center" colspan="2">
                                        Log In
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User 
                                        Name:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox CssClass="field-input" ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox CssClass="field-input" ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$Login1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:Login>--%>
        <asp:Login ID="LoginEmployer" MembershipProvider="MyMembershipProvider" runat="server"
            OnAuthenticate="LoginEmployer_Authenticate">
            <LayoutTemplate>
                <div>
                    <div style="float: left; position: absolute; width: 65px">
                        <asp:Label CssClass="field-label" ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tài khoản</asp:Label>
                    </div>
                    <div style="margin-left: 75px;">
                        <asp:TextBox ID="UserName" CssClass="field-input" runat="server"></asp:TextBox>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 75px;">
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="Yêu cầu nhập tài khoản" ToolTip="Yêu cầu nhập tài khoản" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                        <asp:Label CssClass="field-label" ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu</asp:Label>
                    </div>
                    <div style="margin-left: 75px;">
                        <asp:TextBox ID="Password" CssClass="field-input" runat="server" TextMode="Password"
                            Height="20px"></asp:TextBox>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 75px;">
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Yêu cầu nhập pass" ToolTip="Yêu cầu nhập pass" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 75px;">
                        &nbsp;<asp:CheckBox ID="cbxNhoPass" runat="server" 
                            oncheckedchanged="cbxNhoPass_CheckedChanged" Text="Nhớ mật khẩu" />
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/VN/NhaTuyenDungDangKy.aspx"
                            Font-Bold="true" ForeColor="Red" Font-Underline="true">Đăng ký</asp:HyperLink>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 75px; color: #FF0000;">
                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập"
                            ValidationGroup="ctl00$Login1" OnClick="LoginButton_Click1" /><asp:Literal ID="FailureText"
                                runat="server" EnableViewState="False"></asp:Literal>
                    </div>
                </div>
            </LayoutTemplate>
        </asp:Login>
        <%--<ul>
            <li>
                <label class="field-label" for="<%= username.ClientID %>">
                    Tài khoản</label>
                <asp:TextBox class="field-input" ID="username" runat="server"></asp:TextBox>
            </li>
            <li>
                <label class="field-label" for="<%= password.ClientID %>">
                    Mật khẩu</label>
                <asp:TextBox TextMode="Password" class="field-input" ID="password" runat="server"></asp:TextBox>
            </li>
            <li>
                <asp:CheckBox class="checkbox" ID="remember" runat="server" />
                <label for="<%= remember.ClientID %>">
                    Ghi nhớ thông tin</label>
            </li>
            <li>
                <div class="forgot">
                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/ForgotPassword.aspx">Quên mật khẩu?</asp:HyperLink></div>
                <asp:Button runat="server" ID="loginButton" Text="Đăng nhập" OnClick="loginButton_Click" />
            </li>
        </ul>--%>
    </asp:Panel>
    <asp:Panel Visible="false" runat="server" ID="logoutPanel" CssClass="contentmenu">
        <ul>
            <li>
                <label class="field-label">
                    Tài khoản</label>
                <asp:Label ID="lbtaikhoan" runat="server" Text="Label" Style="color: White; font-weight: bolder"></asp:Label>
            </li>
            <li>
                <label class="field-label">
                    Vai trò</label>
                <asp:Label ID="lbvaitro" runat="server" Style="color: White; font-weight: bolder"></asp:Label>
            </li>
            <li>
                <asp:Label CssClass="field-label" ID="lbten" runat="server" Text="Công ty"></asp:Label>
                <asp:Label ID="lbcongty" runat="server" Style="color: White; font-weight: bolder;
                    font-style: italic"></asp:Label>
            </li>
            <li>
                <center>
                    <asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="Đăng nhập" LogoutText="Đăng xuất"
                        ForeColor="White" OnLoggingOut="LoginStatus1_LoggingOut" />
                </center>
            </li>
        </ul>
    </asp:Panel>
    <div class="button">
        <asp:HyperLink ID="triggerButton" runat="server" NavigateUrl="#">Nhà tuyển dụng: đăng nhập</asp:HyperLink></div>
</div>
